//
//  NetworkHandler.h
//  UI18_网络请求
//
//  Created by z on 15/12/31.
//  Copyright © 2015年 z All rights reserved.
//

#import <Foundation/Foundation.h>

//block传值
typedef void(^NETBLOCK)(id result);

@interface NetworkHandler : NSObject

//GET
+ (void)GETWithURL:(NSString *)str;

//网络请求的封装方法
+ (void)GETWithURL:(NSString *)str completion:(NETBLOCK)netblock;

//POST
+ (void)GETWithURL:(NSString *)str body:(NSData *)body completion:(NETBLOCK)netblock;

@end
